/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.user.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 币种
 *
 * @author pigx code generator
 * @date 2022-11-21 15:50:12
 */
@Data
@TableName("currency")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "币种")
public class Currency extends Model<Currency> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键")
    private Long id;

    /**
     * 币种名称
     */
    @ApiModelProperty(value="币种名称")
    private String name;

    /**
     * 精度
     */
    @ApiModelProperty(value="精度")
    private Integer accuracy;

    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createBy;

    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value="修改时间")
    private LocalDateTime updateTime;

    /**
     * 状态（1：开启，0：禁用）
     */
    @ApiModelProperty(value="状态（1：开启，0：禁用）")
    private String state;

    /**
     * 公链
     */
    @ApiModelProperty(value="公链")
    private String publicChain;

    /**
     * 手续费地址
     */
    @ApiModelProperty(value="手续费地址")
    private String serviceChargeAddress;

    /**
     * 手续费私钥
     */
    @ApiModelProperty(value="手续费私钥")
    private String serviceChargePrivateKey;

    /**
     * 手续费
     */
    @ApiModelProperty(value="手续费")
    private BigDecimal serviceCharge;

    /**
     * 最小充值金额
     */
    @ApiModelProperty(value="最小充值金额")
    private BigDecimal minimumRechargeAmount;

    /**
     * 最小提现金额
     */
    @ApiModelProperty(value="最小提现金额")
    private BigDecimal minimumWithdrawalAmount;

    /**
     * 单日最大提现金额
     */
    @ApiModelProperty(value="单日最大提现金额")
    private BigDecimal maximumWithdrawalAmountPerDay;

    /**
     * 充值区块确认数
     */
    @ApiModelProperty(value="充值区块确认数")
    private String confirmationBlockRechargeNumber;

    /**
     * 节点地址
     */
    @ApiModelProperty(value="节点地址")
    private String nodeAddress;

    /**
     * 智能合约地址
     */
    @ApiModelProperty(value="智能合约地址")
    private String smartContractAddress;

    /**
     * apikey
     */
    @ApiModelProperty(value="apikey")
    private String apiKey;

	/**
	 * 币种/USDT的最新价格
	 */
	@ApiModelProperty(value="币种/USDT的最新价格")
	private BigDecimal lastPrice;

}
